package cn.openea.perpartner.mpwx.core;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Weird077
 * @description TODO
 * @date 2022-06-22 10:39
 */
@Component
public class MsgTypeHandler {

    @Value("${weixinapi.custom}")
    private String customUrl;
    @Value("${weixinapi.template}")
    private String templateUrl;

    public String getMsgApi(String msgType){

        return "text".equalsIgnoreCase(msgType)?customUrl:templateUrl;
    }
}
